<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			var r=parseFloat(prompt("请输入圆的半径"));
			const pi=3.14;
			
			console.log("圆的周长为:"+(2*pi*r).toFixed(2));
			console.log("圆的面积为:"+pi*r*r);
		</script>
	</body>
</html>
